'use strict';


// Declare app level module which depends on filters, and services
angular.module('myApp', [
    'ngRoute',
    'ngAnimate',
    'myApp.filters',
    'myApp.services',
    'myApp.directives',
    'myApp.controllers'
]).
config(['$routeProvider', function($routeProvider) {
    // $routeProvider.when('/view1', {templateUrl: 'partials/partial1.html', controller: 'MyCtrl1'});
    // $routeProvider.when('/view2', {templateUrl: 'partials/partial2.html', controller: 'MyCtrl2'});
    $routeProvider.when('/book-list', {
        templateUrl: 'partials/book-list.html',
        controller: 'BookListCtrl'
    });
    $routeProvider.when('/book-list/:page', {
        templateUrl: 'partials/book-list.html',
        controller: 'BookListCtrl'
    });
    $routeProvider.when('/book-detail/:id', {
        templateUrl: 'partials/book-detail.html',
        controller: 'BookDetailCtrl'
    });
    $routeProvider.otherwise({redirectTo: '/view1'});
}]);
